package com.security.manage.user.repository;

import com.security.manage.user.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Long> {
    User findByAccount(String account);
    List<User> findByDeptId(Long deptId);
    List<User> findByDeptIdIn(List<Long> deptIds);
    User findByUsbKey(String usbKey);
    List<User> findByManageDeptContaining(String manageDept);

}
